/*
 * @Author: YuWuChen82 1813109877@qq.com
 * @Date: 2025-07-21
 * @LastEditors: YuWuChen82 1813109877@qq.com
 * @LastEditTime: 2025-07-21
 * @FilePath: \antd-demo\src\apis\article.js
 * @Description: 
 */
import {request} from '@/utils'
//获取频道列表
export function getChannelsAPI(){
    return request({
        url:"/channels",
        method:"GET",
    })
}
//提交文章表单
export function createArticleAPI(formData){
    return request({
        url:"/mp/articles?draft=false",
        method:"POST",
        data:formData
    })
}

//获取文章列表
export function getArticleListAPI(params){
    return request({
        url:'/mp/articles',
        method:'GET',
        params
    })
}